export default {
    data(){
        return {
            mixinTableList: [],
            pages:{
                current:1,
                total: 0,
                size: 10,
                pagesizes:[5,10,15,20]
            },
            pages2:{
                current:1,
                total: 0,
                size: 10,
                pagesizes:[5,10,15,20]
            },
            searchParams:{
                input1:'',
                input2:'',
                input3:'',
                input4:'',
                select1:'',
                select2:'',
                select3:'',
                select4:'',
                date1: '',
                date2: '',
            },
            loading: false
        }
    },
    methods:{
        onResizeFn(){
            this.mixinTableList = [];
            this.pages = {
                ...this.pages,
                current: 1,
            }
            this.searchParams = {
                input1:'',
                input2:'',
                input3:'',
                select1:'',
                select2:'',
                select3:'',
                date1: '',
                date2: '',
            }
        },
        handleSizeChange(val){
            this.pages.current = 1;
            this.pages.size = val;
            this.getList()
        },
        handleCurrentChange(val){
            this.pages.current = val;
            this.getList()
        },
    }
}